﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using UserInfo;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(Session["username"]!=null)
            Label1.Text = Session["username"].ToString();
        if (Session["userid"] != null)
        {
            CUser user = new CUser();
            int level=user.getMemLevel(Session["userid"].ToString());
            if (level == 0)
                Label2.Text = "您不是会员，您不能享受优惠!";
            else
                Label2.Text = "您的会员等级是:" + level.ToString() ;
        }
    }
}
